<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>API变更适配</title>
    <style>
        table {
            width: 100%;
            border-collapse: collapse;
        }
        th, td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: left;
        }
        a {
            color: #007acc;
            text-decoration: none;
        }
        button {
            background-color: #007acc;
            color: white;
            border: none;
            padding: 5px 10px;
            cursor: pointer;
        }
        button:hover {
            background-color: #005f99;
        }
    </style>
</head>
<body>
    <table>
        <thead>
            <tr>
                <th>API 定义</th>
                <th>代码位置</th>
                <th>适配指导</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            {{rows}}
        </tbody>
    </table>
    <script>
        const vscode = acquireVsCodeApi();
        function handleRowClick(index) {
            vscode.postMessage({ command: 'navigateToFileAndLineByIndex', index });
        }
        function handleFixClick(index) {
            vscode.postMessage({ command: 'fixCodeByIndex', index });
        }
    </script>
</body>
</html>